/* 组件样式文件 - 转炉终点预测系统 */

/* 控制面板特定样式 */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.dashboard-card-content {
    flex: 1;
}

.dashboard-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
}

.dashboard-card-label {
    color: var(--gray);
    margin-top: 5px;
}

.dashboard-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* 模型性能特定样式 */
.metrics-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s;
}

.metric-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: rgba(25, 118, 210, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 15px;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.metric-label {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 10px;
}

.metric-trend {
    display: flex;
    align-items: center;
    color: var(--success-color);
    font-weight: 500;
    font-size: 13px;
}

.metric-trend.down {
    color: var(--danger-color);
}

.metric-trend i {
    margin-right: 5px;
}

/* 模型更新特定样式 */
.update-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.version-card {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    transition: all 0.3s;
}

.version-card:hover {
    box-shadow: var(--shadow);
}

.version-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.version-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: rgba(25, 118, 210, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.version-info {
    flex: 1;
}

.version-number {
    font-weight: 600;
    margin-bottom: 3px;
}

.version-date {
    font-size: 13px;
    color: var(--gray);
}

.version-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.version-status.current {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.version-status.dev {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--warning-color);
}

.version-features {
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.feature-item i {
    color: var(--primary);
    margin-right: 10px;
    margin-top: 3px;
}

.feature-text {
    font-size: 14px;
    line-height: 1.5;
}

.version-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.02);
    padding: 15px;
    border-radius: var(--radius);
}

.metric-item {
    text-align: center;
}

.metric-label {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 5px;
}

.metric-value {
    font-weight: 600;
    color: var(--primary-dark);
}

.version-actions {
    display: flex;
    gap: 10px;
}

/* 数据集选择器样式 */
.dataset-selector {
    display: flex;
    gap: 10px;
}

.dataset-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.05);
    border: none;
    transition: all 0.2s;
}

.dataset-btn.active {
    background-color: var(--primary);
    color: white;
}

/* 选项卡样式 */
.tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow-x: auto;
}

.tab-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .update-grid,
    .metrics-container {
        grid-template-columns: 1fr;
    }
    
    .version-metrics {
        grid-template-columns: 1fr;
    }
    
    .dataset-selector {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .tabs {
        padding-bottom: 5px;
    }
} 